package com.gate.ws.spring.utils;


import org.apache.fury.Fury;
import org.apache.fury.ThreadSafeFury;
import org.apache.fury.config.Language;

public class FuryUtil {

    private static final ThreadSafeFury fury;

    static {
        fury = Fury.builder().withLanguage(Language.JAVA).requireClassRegistration(true).buildThreadSafeFury();
//        fury.register(WrapBody.class);
    }

    public static Object getBean(byte[] bytes) {
        return fury.deserialize(bytes);
    }


}
